var t = getApp();

Page({
    data: {
        money: 0
    },
    noticeDetails: function(t) {
        wx.setStorageSync("money1", 2), wx.navigateTo({
          url: "/hyb_yl/backstageTeam/pages/noticeDetails/noticeDetails"
        });
    },
    withdraw: function(t) {
        wx.setStorageSync("money", 2), 1 == (wx.getStorageSync("managerRole") || "") ? wx.navigateTo({
          url: "/hyb_yl/backstageTeam/pages/withdraws/withdraws"
        }) : wx.showToast({
            title: "您暂无权限",
            icon: "none",
            duration: 2e3
        });
    },
    onLoad: function(t) {},
    onclick: function(a) {
        var e = this, n = wx.getStorageSync("log") || "", o = wx.getStorageSync("teamId") || "";
        wx.request({
            url: t.globalData.dic + "doctor/team/moneyBagDetail",
            data: {
                token: n,
                currentResult: 0,
                teamId: o,
                type: 2
            },
            success: function(t) {
                console.log(t.data.data), null != t.data.data.moneyBag && e.setData({
                    money: t.data.data.moneyBag.money
                });
            }
        });
    },
    onShow: function() {
        this.onclick();
    }
});